home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / vbcc / machines / amiga68k / include / time.h < prev   
Encoding:
C/C++ Source or Header  |  1998-06-24  |  951 b   |  49 lines

  1. #ifndef __TIME_H
  2. #define __TIME_H 1
  3.  
  4. #ifndef __TIME_T
  5. #define __TIME_T 1
  6. typedef long time_t;
  7. #endif
  8.  
  9. #ifndef __CLOCK_T
  10. #define __CLOCK_T 1
  11. typedef long clock_t;
  12. #endif
  13.  
  14. #ifndef __SIZE_T
  15. #define __SIZE_T 1
  16. typedef unsigned long size_t;
  17. #endif
  18.  
  19. struct tm {
  20.         int     tm_sec;
  21.         int     tm_min;
  22.         int     tm_hour;
  23.         int     tm_mday;
  24.         int     tm_mon;
  25.         int     tm_year;
  26.         int     tm_wday;
  27.         int     tm_yday;
  28.         int     tm_isdst;
  29. /*        long    tm_gmtoff;
  30.         char    *tm_zone;*/
  31. };
  32.  
  33. time_t time(time_t *);
  34. double difftime(time_t,time_t);
  35. char *ctime(const time_t *);
  36. char *asctime(const struct tm *);
  37. clock_t clock(void);
  38. struct tm *gmtime(const time_t *);
  39. struct tm *localtime(const time_t *);
  40. time_t mktime(struct tm *);
  41. size_t strftime(char *,size_t,const char *,const struct tm *);
  42.  
  43. #define CLOCKS_PER_SEC 50   /* z.Z. wohl nutzlos    */
  44.  
  45. #define difftime(a,b) ((double)((a)-(b)))
  46.  
  47. #endif
  48.  
  49.